﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace Three.BookStore.LoginERP
{
    /// <summary>
    /// 角色表
    /// </summary>
    public class RoleModel : Entity<int>
    { 
        /// <summary>
        /// 角色名称
        /// </summary>
        [Required(ErrorMessage = "角色名称不能为空")]
        [StringLength(50, ErrorMessage = "角色名称最大长度为50个字符")]
        public string RoleName { get; set; }

        public RoleModel()
        {
            RoleName = string.Empty;
        }

        public RoleModel(int id) : base(id)
        {
            RoleName = string.Empty;
        }
    }
}
